<?php $__env->startSection('content'); ?>

    <div class="admin-content">
        <div class="admin-content-body">
            <div class="am-cf am-padding am-padding-bottom-0">
                <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">小程序线上会员管理</strong> /
                    <small>List</small>
                </div>
            </div>
            <?php echo $__env->make('admin._flash', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
            <hr>

            <div class="am-g">
                <div class="am-u-sm-12 am-u-md-6">
                    <div class="am-btn-toolbar">
                        <div class="am-btn-group am-btn-group-s">

                            <button type="button" class="am-btn am-btn-default delete_all"><span
                                        class="am-icon-trash-o"></span> 删除
                            </button>


                        </div>
                    </div>
                </div>
            </div>
            <div class="am-g"  >
                <div class="am-u-sm-12 am-u-md-12">
                    <form class="am-form-inline" method="get">
                        <div class="am-form-group">
                            <div class="am-input-group am-input-group-sm">
                                <input type="text" class="am-form-field" name="openid"
                                       value="<?php echo e(Request::input('openid')); ?>" placeholder="openid搜索">
                            </div>
                            <div class="am-input-group am-input-group-sm">
                                <input type="text" class="am-form-field" name="name"
                                       value="<?php echo e(Request::input('name')); ?>" placeholder="姓名搜索">
                            </div>
                            <div class="am-input-group am-input-group-sm">
                                <input type="text" class="am-form-field" name="tel"
                                       value="<?php echo e(Request::input('tel')); ?>" placeholder="手机号搜索">
                            </div>
                        </div>

                        <div class="am-form-group" style="margin-top: 3px">
                            <button type="submit" class="am-btn am-btn-default am-btn-sm">查询</button>
                            <a href="/admin/oncustomer" class="am-btn am-btn-default am-btn-sm">重置</a>
                        </div>
                    </form>
                </div>

            </div>
            <hr>


            <div class="am-g">
                <div class="am-u-sm-12">
                    <form class="am-form">
                        <table class="am-table am-table-striped am-table-hover table-main">
                            <thead>
                            <tr style="font-size: 1.6rem">
                                <th><input class="check_all" type="checkbox"></th>
                                <th class="table-id">ID</th>
                                <th class="table-thumb">微信名</th>
                                <th class="table-thumb">头像</th>
                                <th class="table-thumb">性别</th>
                                <th class="table-type">openid</th>
                                <th class="table-type">姓名</th>
                                <th class="table-type">电话</th>
                                <th class="table-type">加入时间</th>
                                <th class="table-set">操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php $__currentLoopData = $customers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $k=> $c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr data-id="" style="font-size: 1.6rem">
                                    <th><input class="checked_id" name="checked_id[]" value="" type="checkbox"></th>
                                    <td><?php echo e($k+1); ?></td>

                                    <td>
                                          <?php echo e($c->nickname); ?>

                                    </td>
                                    <td><img src="<?php echo e($c->headimgurl); ?>" alt="" height="30" width="30"></td>

                                    <td class="am-hide-sm-only">
                                        <?php if($c->sex == 1): ?>
                                            <span class="am-icon-male " style="color: deepskyblue"></span>
                                        <?php else: ?>
                                            <span class="am-icon-female " style="color: red"></span>
                                        <?php endif; ?>
                                    </td>

                                    <td>
                                        <span class=" am-btn-danger am-btn-s am-radius" >
                                        <?php echo e($c->openid); ?>

                                        </span>
                                    </td>
                                    <td>
                                        <?php echo e($c->name); ?>

                                    </td>
                                    <td>
                                        <?php echo e($c->tel); ?>

                                    </td>
                                    <td>
                                         <span class="am-btn am-btn-success am-btn-xs am-radius" >
                                       <?php echo e($c->created_at); ?>

                                        </span>
                                    </td>





                                    <td>
                                        <div class="am-btn-toolbar">
                                            <div class="am-btn-group am-btn-group-xs">

                                                <a href="/admin/oncustomer/<?php echo e($c->id); ?>"
                                                   data-method="delete"
                                                   data-token="<?php echo e(csrf_token()); ?>" data-confirm="确认删除吗?"
                                                   class="am-btn am-btn-danger am-btn-xs del_one">
                                                    <span class="am-icon-trash-o"></span> 删除
                                                </a>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


                            </tbody>
                        </table>
                        共 <?php echo e($customers->total()); ?> 条记录

                        <div class="am-cf">
                            <div class="am-fr">
                                <?php echo $customers->appends(Request::all())->links(); ?>

                            </div>
                        </div>
                        <hr/>
                        <p>注：.....</p>
                    </form>
                </div>

            </div>
        </div>

        <footer class="admin-content-footer">
            <hr>
            <p class="am-padding-left">© 2014 AllMobilize, Inc. Licensed under MIT license.</p>
        </footer>

    </div>


<?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.admin.application', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>